package com.qf.utils;

import com.qiniu.storage.Configuration;
import com.qiniu.storage.Region;
import com.qiniu.storage.UploadManager;
import org.springframework.web.multipart.MultipartFile;




/**
 * 使用七牛云通过"数据流"上传图片
 */
public class UploadUtils {
    private UploadUtils(){}
    public static String uploadFile(MultipartFile multipartFile) {//使用数据流---将图片上传
        //使用七牛云---sdk完成上传 ---查看七牛云开开发文档
        //数据流的上传的代码--(七牛云的)
        //构造一个带指定Region对象的配置类
        Configuration cfg = new Configuration(Region.region0());
        //上传管理器,将Configuration进行解析
        UploadManager uploadManager = new UploadManager(cfg);

return null;
    }
}
